package com.hdu.redis;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties("redis.isolation")
@Data
public class RedisShadowKeyConfiguration {
    private String keyPrefix;
    private String keySuffix;

    public String getKey(String oriKey) {
        return keyPrefix + ":" + oriKey + ":" + keySuffix;
    }
}
